C (130/301)

From:Linus McCabe
Date:23 Aug 99 at 19:01:48
Subject:Re: Drawing in a window

From: Linus McCabe <sparkle@hehe.com>

> There are two solutions to this: You could set the window-
> refresh into smart-refresh, and handle the damage-messages
> that your window will send to you, allowing you to use your
> own code to patch up the "holes", or you could set it to
> simple-refresh and then Intuition will handle all that
> refreshing.

Isnt it the other way around? Smartrefresh keeps an automatic buffer
of the window so you dont have to worry about it. However, this might
be very memory hungry on system using 16 or 24 bit screens since
theres a whole lot of data to buffer for each window.

Simplerefresh windows might be a bit harder to program, however.
Personally I prefer to use MUI, since it does a lot of the work for
me and the user can choose wether they want simple or smartrefresh
windows.

> Bah, I've coped with only includes, autodocs & a few example-
> sources all this time, so it isn't THAT hard :) I've never
> felt the need for reading the RKRMs :)

Hmm.. Its possible but tedious. I'm in a similar situation and I often
end up asking alot of questions on mailinglists instead.
WHen I was to learn windows programming, I just bought a book and a
day later I could program simple win apps.

If I was a better programmer myself (and maybe a bit better at
teaching) I'd be writing a MUI c course for wanna be programmers,
however, I feel Im not good enough myself yet. I think a lot more
people would program ami stuff if only they new how to. Just look at
the amount of crappy amos stuff on aminet..

/linus



Linus McCabe * Sparkle@hehe.com
* Sparkle, #Amiga, DalNet
* http://come.to/Sparkle

There will always be unexplored Pink Floyd lyrics